#ifndef _DEF_H_
#define _DEF_H_
// #include <cassert>
#include <string>
#include <iostream>
struct Point
{
    double x, y, z;
    Point() : x{-1.0}, y{-1.0}, z{-1.0} {}
    Point(double a, double b, double c) : x{a}, y{b}, z{c} {}
};

struct Tria
{
    long node[3];
    Tria() { node[0] = node[1] = node[2] = -1; }
};
// 可以将其写成宏
class Massert
{
  public:
    static void Assert(bool flag, const char *message)
    {
        if (!flag)
        {
            std::cerr << message << "\n\n";
            exit(EXIT_FAILURE);
        }
    }
};

#define PI   3.1415926535897932
// #define PI2  1.5707963267948966
#define RAD  1.7453292519943296e-2

#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define MIN(a, b) (((a) < (b)) ? (a) : (b))

#endif